Texture and semantic integrated small objects detection in foggy scenes

In recent years, small objects detection has received extensive attention from scholars for its important value in application. Some effective methods for small objects detection have been proposed. However, the data collected in real scenes are often foggy images, so the models trained with these methods are difficult to extract discriminative object features from such images. In addition, the existing small objects detection algorithms ignore the texture information and high-level semantic information of tiny objects, which limits the improvement of detection performance. Aiming at the above problems, this paper proposes a texture and semantic integrated small objects detection in foggy scenes. The algorithm focuses on extracting discriminative features unaffected by the environment, and obtaining texture information and high-level semantic information of small objects. Specifically, considering the adverse impact of foggy images on recognition performance, a knowledge guidance module is designed, and the discriminative features extracted from clear images by the model are used to guide the network to learn foggy images. Second, the features of high-resolution images and low-resolution images are extracted, and the adversarial learning method is adopted to train the model to give the network the ability to obtain the texture information of tiny objects from low-resolution images. Finally, an attention mechanism is constructed between feature maps of the same scale and different scales to further enrich the high-level semantic information of small objects. A large number of experiments have been conducted on data sets such as “Cityscape to Foggy” and “CoCo”. The mean prediction accuracy (mAP) has reached 46.2% on “Cityscape to Fogg”, and 33.3% on “CoCo”, which fully proves the effectiveness and superiority of the proposed method.


Introduction
Object detection is one of the most important tasks in machine vision. It aims to find the object in images by computer and determine its category and position. With the advent of big data technology and deep learning in recent years, great breakthroughs have been made in object detection tasks [1][2][3][4][5][6]. However, the data collected in real scenes often contains smallsized objects. This kind of object contains very little information which may be lost after multi-layer convolution, so its discriminative features are difficult to extract, resulting in low model detection performance. The existing small objects detection algorithms can effectively address the above problems. Such methods can be roughly divided into three categories: small objects detection methods based on multi-scale feature extraction [7][8][9][10][11], high-resolution feature-assisted small objects detection methods [12][13][14][15][16] and small objects detection methods guided by content information [17][18][19][20][21]. These methods focus on how to effectively improve the representational capability of the model to extract the discriminative features of small objects. Nevertheless, due to the influence of weather conditions, the data collected in real world are often foggy images. The quality of such images are often impared, which will cause the model's characterization ability to decline during small objects detection. This makes it difficult for the above methods to extract the discriminative object features. In addition, the existing small objects detection algorithms ignore the texture information and high-level semantic information of small objects, which partly limits the detection performance. As shown in Fig 1 below, the street view images collected in a foggy scene are low in sharpness and contrast, so the detection model trained directly on such images does not have the ability to extract the discriminant features of the object. It can also be seen from Fig 1 that it is difficult to obtain the texture information of the road indication sign in the low-resolution foggy images. Moreover, the road signs account for a small proportion in the image, which causes the model to lose the high-level semantic information of small objects during the continuous convolution.
Based on the above discussion, It is difficult to extract discriminative object features from the model trained by the existing methods. In addition, the existing small objects detection algorithms ignore the texture information and high-level semantic information of small objects, which limits the improvement of detection performance. So we proposed a knowledge-guided and information-rich model for small objects detection in foggy scenes. The model consists of three modules: knowledge guidance, texture information acquisition, and semantic information enrichment. Among them, the knowledge guidance module focuses on alleviating the adverse effects of foggy environment on detection performance; the texture information acquisition module is responsible for enriching the texture information of small objects in the feature map; the semantic information enrichment module obtains the highlevel semantic information of small objects by constructing the attention mechanism between multi-scale feature maps.
To sum up, the contribution of this paper and the advantages of the proposed method are as follows: 1. In view of the difficulties caused by foggy scenes to the detection task, a knowledge guidance module is designed. It is used to extract the features of the clear image to assist the network to learn the foggy image, so that this model can better extract the discriminative object features.
2. Our designed a texture information acquisition module, which can enable the network to acquire the texture information of small objects from low-resolution images, and improve the model's representational ability to a certain extent.
3. In order to further complete the information of small objects, a semantic information enrichment module is proposed. In this module, a multi-scale feature attention mechanism is constructed to obtain the rich high-level semantic information of small objects. The validity and superiority of the proposed method are fully verified by experiments on two public data sets, "Cityscape to Foggy" and "CoCo".

Related works
At present, CNN networks are generally used as feature extractors in object detection networks. In order to increase the receptive field, the CNN network will continuously shrink the feature map, which makes the feature information extracted from small objects originally containing very little information less or disappear. It is a huge challenge for detecting small objects in images. To address this problem, some researchers have proposed small objects detection based on multi-scale feature extraction, small objects detection assisted by high-resolution features, and small objects detection guided by content information.

Small objects detection based on multi-scale feature extraction
Most of the existing object detection approaches are for general objects detection. Due to the loss of location information, the detection effect of this kind of method in small objects task has poor performance. In order to obtain the semantic information and position information of the object at the same time, small objects detection methods based on multi-scale feature extraction are proposed. This kind of methods extract features of different-scale images and fuses them to obtain rich object information. For example, Lin et al. [7] designed a top-down feature pyramid network, and merged the high-level semantic information and low-level location information obtained by the network, which significantly improves the performance of small objects detection. Given that deep-level features are difficult to retain the spatial and semantic information of small objects, Liu et al. [8] proposed an image pyramid guidance network and embedded it in each stage of the backbone network, greatly alleviating the information imbalance. In addition to the imbalance between semantic information and spatial information, the imbalance in training process is also a major contributing factor to the low performance of object detection. Thus, Pang et al. [9] proposed IoU sampling, balanced feature pyramid, and balanced L1 loss methods to respectively solve the sample imbalance, feature imbalance and objective function imbalance during the object detection and training. Some researchers explored how to improve model efficiency while ensuring accuracy. For example, Tan et al. [10] proposed EfficientDet for object detection task. They designed a weighted bi-directional feature pyramid network to integrate multi-scale features more efficiently and quickly, and proposed a hybrid scaling method to uniformly scale the width, depth and resolution of the network. Yet recently, it has been found that the feature pyramid networks can cause serious aliasing effects in the process of fusing feature maps. To solve this problem, Luo et al. [11] proposed an object detection method with enhanced channel information, which introduces a channel attention module to eliminate aliasing. In addition, they also proposed a subpixel jump fusion method, which effectively reduces the information loss in the process of channel reduction. This method only performs channel attention operations on each feature layer separately, and cannot address the problem of high-level semantic information loss of small objects. Considering that small objects have insufficient information in the original image, some researchers applied super-resolution to input image processing, and proposed a small objects detection method assisted by high-resolution features.

Small objects detection assisted by high-resolution features
High-resolution features often contain rich texture information, which can play a positive role in improving the performance of small objects detection tasks. Therefore, some scholars put forward small objects detection methods that extract high-resolution features, and learn lowresolution images through its auxiliary model. Among them, the generative adversarial method can effectively align the features of different levels [12,13]. Specifically, Li et al. [12] built a generator to map the feature of a small objects into a high-resolution feature. To ensure the accuracy of the mapping, a discriminator was designed to distinguish between high-resolution and low-resolution features. In this way, the network has the ability to extract high-resolution features from low-resolution images. Considering the category scores and position confidence involved in the object detection task, Bai et al. [13] introduced the idea of multitask discrimination to design a multi-task discriminator. This discriminator can determine the categories and coordinates of the mapping features while distinguishing high and low resolutions. To further improve the super-resolution quality of small objects, Noh et al. [14] used high-resolution object features as a supervisory signal, and designed a generator to generate fine-grained high-resolution features.
For remote sensing images, Ji et al. [15] proposed an end-to-end method to integrate the generation and detection tasks to achieve vehicle detection. The generating networks are often prone to model collapse. To overcome this problem, Shermeyer et al. [16] proposed to use deep convolutional neural network (VDSR) or random forest super-resolution framework to perform super resolution processing on images of different levels and then train the object detection model. However, this approach is time-consuming as it needs to pre-train the super resolution model. The above problems can be addressed by an end-to-end training method. Such a method directly uses the high-resolution features as the supervision information and gives the model the ability to extract high-resolution image features from low-resolution ones by adversarial means.

Small objects detection guided by content information
Content information guidance is a very popular research topic in object detection tasks in recent years. Excellent content information guided small objects detection algorithms have been proposed one after another. For example, Chen et al. [17] proposed two kinds of information at the image level and the relationship level between the objects, and designed a spatial memory network to store this information, and used this information to assist the model for detection in the iterative process. Early objects detection algorithms failed to consider the local and global information of the image at the same time. In response to this problem, Zhu et al. [18] developed the global structure-local area network to extract the global features and local features of the image simultaneously for detection. In this process, the local features are obtained by the RoI pooling of position sensitivity. Once the model can learn the relationship between the objects, the detection effect can be enhanced to a certain extent. Therefore, Hu et al. [19] constructed an object relationship module which introduces the attention mechanism to describe the relationship between different objects.
Compared with general detection tasks, face detection is more challenging. This is mainly because of the small size, blurred quality and partial occlusion of the face in the image. To capture the contextual information in the image, Tang et al. [20] designed a new context anchor to extract high-level context features, and used a low-level feature pyramid network to integrate low-level information with them. To alleviate the mismatch between feature map resolution and receptive field size, Cao et al. [21] proposed a context information extraction module and an attention guidance module. The former is responsible for exploring and acquiring a large amount of contextual information, while the latter is to alleviate redundant context relationships and adaptively capture the dependencies between objects. Nevertheless, these methods are mostly designed for general object detection, and their detection performance on small objects is unsatisfactory. In addition, images acquired in real world are often impacted by weather conditions. For example, foggy images will result in poor image quality, thereby affecting the representational ability of the model.
In order to solve the above problems, this paper proposes a texture and semantic integrated small objects detection in foggy scenes. The model contains three modules: knowledge guidance, texture information acquisition, and semantic information enrichment. The three modules equip the model for small objects detection in foggy scenes.

Overview
The texture and semantic integrated small objects detection algorithm proposed in this paper consists of three modules. They are knowledge guidance, texture information acquisition, and semantic information enrichment, as shown in Fig 2. In the knowledge guidance module, the discriminative features extracted by the network from the clear image are used to guide the model to learn the foggy image. Different from low-resolution images, high-resolution ones often contain texture information of small objects. If the network can also extract features containing texture information from low-resolution images, it can improve the model's representational ability to a certain extent. To this end, a texture information acquisition module is designed. In this module, the features of high-resolution and low-resolution images are extracted separately. Next, adversarial learning is conducted between the two to align the features of low-resolution images with high-resolution features, so that the network can obtain texture information of small objects from low-resolution images.
In order to make the model trained on a clear image have a good effect in detecting foggy images, a knowledge guidance module is added to enable the feature extractor E to extract discriminative object features. In order to enrich the small objects information on the feature map, the texture information acquisition module is added, and the training feature extractor E can extract the feature map with rich texture information; for the three different scales feature map, because the small-scale and mesoscale features pass through more layers of convolution network, resulting in the loss of small objects semantic information. So the semantic information enrichment module is added to obtain the high-level semantic information of small objects. In this way, although the shallow features are convoluted continuously, the rich semantic information of small objects can still be retained. These three models will be introduced in detail below.

Knowledge guidance module
In practice, many images are collected in foggy scenes. Such images have low contrast and sharpness, so it is difficult for the network to extract discriminative features of the object. To overcome this problem, a knowledge guidance module is proposed. In this module, the discriminative features extracted by the network from the clear image are used to guide the model to learn the foggy image. As shown in Fig 3, it is assumed that the low-resolution image in a foggy scene is X ¼ fx n g N n¼1 and the clear low-resolution image is X c ¼ fx c n g N n¼1 , where N is the number of images. First, the feature extractor E is applied to extract the features F and F c of foggy and clear low-resolution images. After that, F and F c are fed into the Yolo layer to generate features of three scales, respectively denoted by F 1 , F 2 , F 3 and F c 1 , F c 2 , F c 3 . The dimensions of each scale feature map are respectively It should be pointed out that H k = W k (k = 1, 2, 3). Subsequently, B candidate boxes are selected from each pixel of the feature map. For low-resolution images in a foggy scene, objects in the candidate frame are classified to ensure the discriminability of features. The category loss and category confidence loss are as follows: Here, S is the dimension of the feature map, i.e., H 1 ,H 2 and H 3 . I obj i;j is the indicator function, which means that the object is in the candidate box j at the position i on the feature map. p i (c) is the real category label, andp i ðcÞ is the predicted result. c i andĉ i are the confidence of the real and predicted categories, respectively. In addition to the above two losses, the detection task also needs to determine the coordinates of the object in the picture. The corresponding loss is: Where x i ,y i ,w i and h i respectively represent the center point position and scale in the real box,x i ,ŷ i ,ŵ i andĥ i are the the center point position and scale in the prediction box. Therefore, for foggy low-resolution images, the detection loss is: Similarly, to ensure the discriminability of clear image features, loss constraint is performed on F c 1 , F c 2 and F c 3 . There is:

PLOS ONE
Texture and semantic integrated small objects detection in foggy scenes The features extracted by the network from clear images tend to be more discriminative. In order to give the model the ability to extract discriminative features from foggy images, a knowledge guidance mechanism is designed. In this mechanism, the strategy of knowledge distillation is adopted to promote the self-learning of the feature encoder E. There is: Where KL is the KL divergence, which can be expressed as: p(•) means to convert the feature map to a vector and use softmax function to process it, and R is the number of pixels in the feature map.
In order to make feature extractor E extracts deep features have stronger position representation; we designed a semantic position information fusion attention module, as shown in Fig  3. In this module, the third layer feature F L extracted by the feature extractor is convoluted by 3 � 3 to generate the feature F 0 L , which is consistent with the size of the ninth layer feature. Because the third layer features pass through few convolution layers and have rich location information, the spatial attention operation is carried out on F 0 L to generate image feature F 0 LA , so that the network can pay attention to the interest region in the third layer image feature. Because the ninth layer features undergo multi-layer convolution, the semantic information of the feature map is very rich. Channel attention operation is performed on F H to generate the feature map F HA , so that the network can pay attention to the interest semantic information. In order to enrich the position representation of F HA , F 0 LA and F HA are spliced and fused, and then through 1 � 1 convolution, F HA obtains the position information in F 0 LA . The Eq (8) is as follows: Where, � represents element level multiplication, Cat represents splicing in channel dimension, CONV represents 1 � 1 convolution. Through this model processing, the feature extractor E can extract deep features with rich location information from the foggy image.

Texture information acquisition module
As discussed earlier, high-resolution images often contain the texture information of the object. If the network can also obtain such information in low-resolution images, the model's characterization ability can be further improved. To achieve this goal, a texture information acquisition module is designed. This module contains two feature extractors E and E h , and one discriminator D, as shown in Fig 4. Among them, the function of E is consistent with that in the knowledge guidance module, and it is used to extract the features of low-resolution foggy images; E h is used to extract the features of high-resolution images in foggy scenes; the discriminator judges whether the extracted features are from high-resolution images or low-resolution images. For example, given a high-resolution image X h ¼ fx h i g N i¼1 , the feature extractor E h is applied to extract the feature map F h , and then adversarial learning is adopted to constrain the feature extractor E and the discriminator D.
Here,E(x) is the feature extracted by feature extractor E from image x. After the above operations, the feature extractor now has the ability to extract high-resolution features, enriching the texture information of the small objects.

Semantic information enrichment module
Feature maps of different scales contain different types of object information, and continuous convolution operations will cause the loss of high-level semantic information of small objects. To overcome this problem, this paper designs a semantic information enrichment module to obtain the high-level semantic information of small objects. As shown in Fig 5, the feature extractor E extracts the features F 1 , F 2 and F 3 of low-resolution foggy images. In order to retain the key information of the object in the feature map, a self-attention mechanism is constructed on the feature map of each scale. Specifically, the feature maps of each scale are processed by resizing to change their dimensions to C 1 � (H 1 W 1 ),C 2 � (H 2 W 2 ) and C 3 � (H 3 W 3 ) Subsequently, the feature maps are processed by transposition, multiplication, and normalization to get the attention matrices: Next, by transposing and multiplying the feature map of each scale with the corresponding attention matrix, we get: F 0 1 ,F 0 2 and F 0 3 are the feature maps after self-attention operation, and such feature maps contain the key information of the object on feature maps of each scale.
Unlike F 0 1 , the scales of F 0 2 and F 0 3 are small owing to continuous convolution operations, so the high-level semantic information of small objects is often lost. To retain this information, a feature fusion mechanism is constructed on feature maps of different scales. To ensure that F 0 2 contains the information of small objects in F 0 1 , the features of the two scales are fused to get: Where A 12 is the feature after fusion of F 1 and F 0 2 , and its dimension is C 1 � H 1 � W 1 . This operation introduces the key object information in F 0 1 to F 0 2 . On this basis, the fused features are subjected to up-sampling and convolution to get: Where the up-sampling multiple is 2, and conv is 1 � 1 convolution. By this way, the small objects information of feature map F 0 1 is introduced into F 0 22 . It should be pointed out that F 0

22
and F 2 have the same dimension of C 2 � H 2 � W 2 . Similarly, to make F 0 3 contain the information in F 0 22 , the above operations are performed on F 0 22 . The first is to calculate the self-attention map of F 0 22 and then to obtain the channel attention matrix Subsequently, the fused feature A 23 are subjected to up-sampling and convolution to get F 0 33 ¼ ConvðUpsampleðA 23 ÞÞ. This feature map has the same dimension of F 0 3 . After the above operations, the deep feature maps F 0 22 and F 0 33 can contain the small objects information in the feature map F 0 1 . Then category loss, confidence loss and coordinate position loss are performed on the obtained feature maps F 0 1 , F 0 22 and F 0 33 to get:

Total loss
In summary, the total loss of the small objects detection algorithm proposed in this paper is: Where λ 1 and λ 2 are hyper-parameters, which are used to weigh the proportions of the loss items L g (E, E c ) and L w (E, D) in the total loss. Algorithm 1 the proposed algorithm.
Definition: two feature encoders E h and E; one discriminator D Input: , and unlabeled low-resolution foggy image X ¼ fx n g N n¼1 Output: optimal model E � Image preprocessing: Scale the input image of any size to 608 � 608 � 3 Optimize: for each k 2 [1, n] do: and X c ¼ fx c n g N n¼1 into E to get features F i and F c i ; (b) Input features F h i and F c i into discriminator D and then train E h and D with formulas (9) and (10); (c) Input features F c i and F i into KL loss and train E with formula (7); (d) Input feature F i into Yolo layer and train E with formula (4); end for

Data set and evaluation indicators
In order to verify the effectiveness and superiority of the proposed algorithm, a large number of experiments were carried out on two available large-scale data sets, i.e. "Cityscape to Foggy" [22] and "CoCo" [23], and they were compared with some of the most advanced methods. "Cityscape to Foggy" is mainly used for semantic segmentation tasks. Cityscape dataset had 3457 images, including 2965 images in the training set and 492 in the test set; FoggyCityscape dataset had 3457 images, of which 2965 were in the training set and 492 in the test set. Therefore, eight categories of data-"Bus", "Bicycle", "Car", "Motorcycle", "Person", "Rider", "Train" and "Truck" were singled out from the "Cityscape to Foggy" dataset, and their labels were converted into formats suitable for object detection tasks. By contrast, the "CoCo" data set had 123287 fog-free images, of which 118287 in the training set and 5000 were in the test set. To verify that the algorithm proposed in this paper can effectively detect small objects in foggy scenes, the foggy algorithm [24] was applied to fog the COCO data set, and 123287 foggy images (118287 in the training set and 5000 in the test set) were obtained. All experiments in this paper used average prediction accuracy (mAP) as the evaluation index, and the formula is shown in Eq (19).
Where C is the total number of categories, N the sample size in one category, maxk �k PðkÞ is the accuracy of the maximum confidence greater than the confidence threshold, Δr(k) is the change in the recall rate when the sample size changes from k − 1 to k. On the coco data set, the following evaluation indicators are derived based on mAP: mAP 50 represents the average prediction accuracy of 0.5 for the intersection ratio of the target's prediction frame and its real frame; mAP 75 represents the average prediction accuracy of 0.75 for the intersection ratio of the target's prediction frame and its real frame; mAP S means the average prediction accuracy of the target area less than 32 � 32 pixels; mAP M means the average prediction accuracy of the target area greater than 32 � 32 but less than 96 � 96 pixels; mAP L means the average prediction accuracy of the target area larger than 96 � 96 pixels.

Experimental details
The experiment was performed on a GTX 3090Ti graphics card. The feature encoders in this paper all used the Darknet-53 network as the feature extractors. E,E c and E h did not share parameters with each other. The discriminator D consists of three convolution-pooling-normalization blocks and one fully connected layer. During the experiment, the images were preprocessed by random flip, random fill, and random crop, and the size of the image was uniformly scaled to 608608. The model was trained for 100 generations, the batch size was 2, and the initial learning rate was 0.007. The learning rate adjustment algorithm adopted the cosine annealing algorithm.
In the test, only the feature encoder E was used to extract the features of low-resolution images in foggy scenes for prediction.
It can be seen from Table 1 that compared with other object detection algorithms, the algorithm proposed in this paper performs the best under foggy conditions. The proposed algorithm is also compared with the state-of-the-art methods on the foggy "CoCo" data set, as shown in Table 2. It can be seen that the algorithm proposed has the best performance.

Ablation experiment
In order to prove the effectiveness of each module in the proposed algorithm, a series of ablation experiments were carried out. In this process, the model with all three modules removed was used as the benchmark, that is, only the detection loss constraint model for low-resolution images in foggy scenes was used. As shown in Table 3, the model using only benchmark training achieved an average prediction accuracy of 39.4% on "Cityscape to Foggy".
Knowledge guidance module: It can be seen from Table 3 that when the knowledge guidance module is added, the performance is greatly improved compared with the benchmark, by a mean predication accuracy of 4.7% on "Cityscape to Foggy". It indicates that the proposed knowledge guidance module can effectively alleviate the adverse effects of foggy environment on recognition performance. Texture information acquisition module: When the texture information acquisition module is added to the model, the detection performance is further improved. The mean prediction accuracy on the "Cityscape to Foggy" dataset increases from 39.4% to 40.9%. This is mainly because the proposed texture information acquisition module enriches the texture information in the features and improves the representation ability of the model.
Semantic information enrichment module: The loss of high-level semantic information is partly to blame for the limited detection performance. Thus, when the semantic information enrichment module is added to the model, the detection performance is improved. The mean prediction accuracy on "Cityscape to Foggy" dataset increases from 39.4% to 39.6%. It is therefore can be concluded that the proposed semantic information enrichment module plays a positive role in enhancing detection performance.
It can be seen from Table 3 that after considering the three modules Knowledge guidance module, Texture information acquisition module and Semantic information enrichment module at the same time, the model achieves a better performance. The mean prediction accuracy on the "Cityscape to Foggy" dataset reached 46.2%.

Parameter analysis
In the algorithm proposed in this paper, λ 1 and λ 2 are hyper-parameters, which are used to weigh the proportions of loss terms L g (E, E c ) and L w (E, D) in the total loss respectively. To demonstrate that the parameter value is the optimal, the parameter analysis experiment was carried out, and the experimental results are shown in Fig 6 below. It should be noted that when one parameter is analyzed, the other parameter is fixed.
The impact of λ 1 on model performance: Parameter λ 1 is used to control the relative weight of the loss term L g (E, E c ) in the total loss. As shown in Fig 6(a), when λ 1 ranges within [0.6,1.0], mAP is on the rise; it reaches the maximum when λ 1 = 1.0 and starts to decline thereafter. This indicates that the optimal value of λ 1 is 1.0.
The impact of λ 2 on model performance: Parameter λ 2 is used to control the relative weight of L w (E, D). It can be observed from Fig 6(b) that as λ 2 rises from 0.6 to 0.8, the detection Parameter analysis: (a) shows L g in the total loss, the influence of different weights on the total loss, and the weight is recorded as λ 1 ; (b) shows L w in the total loss, the influence of different weights on the total loss, and the weight is recorded as λ 2 . https://doi.org/10.1371/journal.pone.0270356.g006

PLOS ONE
performance shows a negative growth, and varies greatly when λ 2 ranges from 0.6 to 1.6. At λ 2 = 1.4, mAP reaches its maximum. So the optimal value of λ 2 is 1.4.

Visual analysis
In order to better prove the effectiveness of this method, this paper uses yolov5 method and this method to carry out visual display on the cityscape to foggy dataset, as shown in Fig 7. As can be seen from Fig 7, this method can not only well detect targets in foggy scenes, but also detect small targets in foggy scenes. It can be proved that this method not only solves the problem of domain migration between different data sets, but also can effectively extract the information of small targets in shallow features and improve the ability of model to detect small targets.

Conclusions
In this paper, we study the small objects detection task in foggy scene. It is difficult to extract discriminative object features from the model trained by the existing methods. In addition, the existing small objects detection algorithms ignore the texture information and high-level semantic information of small objects, which limits the improvement of detection performance. Aiming at the above problems, this paper proposes a Texture and semantic integrated small objects detection algorithm in foggy scenes. Specifically, the discriminant features extracted by the model from clear images are used to guide the model to learn, which alleviates the negative impact of foggy images on the detection performance. Given that the existing algorithms are difficult to obtain the texture information and high-level semantic information of small objects, the adversarial learning strategy is adopted to give the network the ability to obtain the texture information of small objects from low-resolution images. At the same time, a multi-scale feature map attention mechanism is constructed to further enrich the high-level semantic information of small objects. The effectiveness and superiority of the method proposed in this paper have been fully verified by a series of experiments.